package com.example.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class IdNameDto {
    private Integer id;
    @NotNull(message = "职能昵称不能为空")
    @NotBlank(message = "职能不能为空")
    private String name;
}
